﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CI_ELEC_AUTH_FORM.aspx.cs" Inherits="StreetSmartAdmin.CI_ELEC_AUTH_FORM" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    
    <style type="text/css">
        body
        {
        font-family:"Times New Roman";
        }
        div.main
        {
        margin-bottom:100px;
        }
        p.btm
        {
         font-size:13px; 
        }
        
        div.sign
        {
        line-height:200%
        }
        p.foot
        {
         font-size:12px; 
         
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" >
    <div >
    <center>
    <img alt="" src="images/logo.jpg" style="height: 79px" />
    <h1>Authority to Proceed/Consumption Release Form</h1>


        <br />
        <div class="main">
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SQLServer2005DBConnectionString %>" 
            
            
                SelectCommand="SELECT [SITE_NAME], [SITE_ADDRESS], [NMI], [ACCOUNT_NO], [ABN], [ACN] FROM [tblCI_ELEC_SITE_DETAIL] WHERE ([USERID] = @USERID)">
            <SelectParameters>
                <asp:SessionParameter Name="USERID" SessionField="USERID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                ConnectionString="<%$ ConnectionStrings:SQLServer2005DBConnectionString %>" 
                
                
                SelectCommand="SELECT [COMPANY_NAME], [ELEC_CURRENT_RETAILER], [FIRST_NAME], [LAST_NAME] FROM [tblCI] WHERE ([USERID] = @USERID)">
                <SelectParameters>
                    <asp:SessionParameter Name="USERID" SessionField="USERID" Type="Int32" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource2" 
                EnableModelValidation="True">
                <EditItemTemplate>
                    COMPANY_NAME:
                    <asp:TextBox ID="COMPANY_NAMETextBox" runat="server" 
                        Text='<%# Bind("COMPANY_NAME") %>' />
                    <br />
                    ELEC_CURRENT_RETAILER:
                    <asp:TextBox ID="ELEC_CURRENT_RETAILERTextBox" runat="server" 
                        Text='<%# Bind("ELEC_CURRENT_RETAILER") %>' />
                    <br />
                    <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                        CommandName="Update" Text="Update" />
                    &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                        CausesValidation="False" CommandName="Cancel" Text="Cancel" />
                </EditItemTemplate>
                <InsertItemTemplate>
                    COMPANY_NAME:
                    <asp:TextBox ID="COMPANY_NAMETextBox" runat="server" 
                        Text='<%# Bind("COMPANY_NAME") %>' />
                    <br />
                    ELEC_CURRENT_RETAILER:
                    <asp:TextBox ID="ELEC_CURRENT_RETAILERTextBox" runat="server" 
                        Text='<%# Bind("ELEC_CURRENT_RETAILER") %>' />
                    <br />
                    <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                        CommandName="Insert" Text="Insert" />
                    &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                        CausesValidation="False" CommandName="Cancel" Text="Cancel" />
                </InsertItemTemplate>
                <ItemTemplate>

                <table>
                <tr>
                    <td>Company Name:
                    </td>
                    <td><asp:Label ID="lblCOMPANY_NAME" runat="server" Text='<%# Bind("COMPANY_NAME") %>' />
                    </td>
                </tr>
                <tr>
                    <td>Current Electricity Retailer:
                    </td>
                    <td><asp:Label ID="ELEC_CURRENT_RETAILERLabel" runat="server" 
                        Text='<%# Bind("ELEC_CURRENT_RETAILER") %>' />
                    </td>
                    
                </tr>
                <tr>
                    <td>Owner/Signatory of Account:
                    </td>
                    <td>
                    <asp:Label ID="FIRST_NAME" runat="server" Text='<%# Bind("FIRST_NAME") %>' />
                    &nbsp;
                    <asp:Label ID="LAST_NAME" runat="server" Text='<%# Bind("LAST_NAME") %>' />
                    </td>


                </tr>
                </table>
                    



                </ItemTemplate>
            </asp:FormView>
            <br />
            <br />
            <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1" EnableModelValidation="True">
            <Columns>
                <asp:BoundField DataField="SITE_NAME" HeaderText="Site Name" 
                    SortExpression="SITE_NAME" />
                <asp:BoundField DataField="SITE_ADDRESS" HeaderText="Site Address" 
                    SortExpression="SITE_ADDRESS" />
                <asp:BoundField DataField="ABN" HeaderText="ABN" SortExpression="ABN" />
                <asp:BoundField DataField="ACN" HeaderText="ACN" SortExpression="ACN" />
                <asp:BoundField DataField="NMI" HeaderText="NMI" 
                    SortExpression="NMI" />
                <asp:BoundField DataField="ACCOUNT_NO" HeaderText="Account Number" 
                    SortExpression="ACCOUNT_NO" />

            </Columns>
        </asp:GridView>

        </div>
        
        <p class="btm">
        
            We authorise Street Smart Energy to act on our behalf to gather energy data and receive Retail Energy prices from licensed Energy Retailers for the site(s) as listed above. <br/>
            We agree that all information provided is true and correct and authorise Street Smart Energy to release relevant company details to licensed market participants. <br/>
            I am authorised to sign this document on behalf of the company.<br/>
        
        </p>
        
        <br/><br/><br/><br/>
        <div class="sign">
        <table border="0">
        <tr>
            <td>Signed:
            </td>
            <td>_________________________
            </td>
        </tr>
        <tr>
            <td>Name:
            </td>
            <td>_________________________
            </td>
        </tr>
        <tr>
            <td>Position:
            </td>
            <td>_________________________
            </td>
        </tr>
        <tr>
            <td>Date:
            </td>
            <td>_________________________
            </td>
        </tr>
        </table>
        </div>

        <br/><br/><br/>

        <p class="foot">
        
        Global Scene Products T/as Street Smart Energy<br/>
        GPO Box 3305, Sydney NSW 2001<br/>
        www.streetsmartenergy.com.au<br/>
        Ph: 1300 767 056<br/>
        Fax: (02)9993 0454<br/>
        ABN: 67141238119<br/>

        
        </p>
        </center>

    </div>
    </form>
</body>
</html>
